<h1>New department</h1>

<%= error_messages_for :department %>

<% form_for(@department) do |f| %>
  <p>
    <%= f.submit "Create" %>
  </p>
<% end %>

<%= link_to 'Back', departments_path %>
